package com.pig4cloud.mall.ware.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 采购信息
 *
 * @author fangyu
 * @date 2020-12-23 17:27:03
 */
@Data
@TableName("wms_purchase")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "采购信息")
public class Purchase extends Model<Purchase> {
	private static final long serialVersionUID = 1L;

	/**
	 * 采购单id
	 */
	@TableId
	@ApiModelProperty(value = "采购单id")
	private Long id;
	/**
	 * 采购人id
	 */
	@ApiModelProperty(value = "采购人id")
	private Long assigneeId;
	/**
	 * 采购人名
	 */
	@ApiModelProperty(value = "采购人名")
	private String assigneeName;
	/**
	 * 联系方式
	 */
	@ApiModelProperty(value = "联系方式")
	private String phone;
	/**
	 * 优先级
	 */
	@ApiModelProperty(value = "优先级")
	private Integer priority;
	/**
	 * 状态
	 */
	@ApiModelProperty(value = "状态")
	private Integer status;
	/**
	 * 仓库id
	 */
	@ApiModelProperty(value = "仓库id")
	private Long wareId;
	/**
	 * 总金额
	 */
	@ApiModelProperty(value = "总金额")
	private BigDecimal amount;
	/**
	 * 创建日期
	 */
	@ApiModelProperty(value = "创建日期")
	private LocalDateTime createTime;
	/**
	 * 更新日期
	 */
	@ApiModelProperty(value = "更新日期")
	private LocalDateTime updateTime;
}
